<?php
require('config.php');
$page = new rootLayoutHomePage();
$page->setBaliseTitle('index_balise');
$page->setDescription('index_description');

//$page->addJavaScript('jquery.fancybox-1.2.1.js');
//$page->addJavaScript('video.js');

//-- Menu Pagees ----------------------------------------------//
$menu = new layoutMenuLeft();
	$menuPage = new layoutMenuPage();
	$menuPage->setTable('content_page');
	//$menuPage->setIdShow($content->id_menu_left_tree);
	//$menu->setIdShow($content->id_menu_left_tree);
	$menu->pushMenu($menuPage);
$header = new layoutHeader();
//$header->setIdShow($content->id_menu_left_tree);
$page->setHeader($header);

//--------HighLight-List-----------//
$listHighLight = modelHighlight::getListAll();
if($listHighLight->size() > 0){
	foreach($listHighLight as $key => $highLight){
		$layoutHighlight = 'layoutHighLight'.$highLight->id_highlight_type;
		$high = new $layoutHighlight;
		$high->id_highlight($highLight->language_link);
		$page->pushHighlight($high);
	}
}
$tpl_file = 'index.tpl';

$index = new flyLayout(REP_TPL . $tpl_file);
$index->start();
if(DISPLAY_MAP_FRONT==1){
	$page->importJavaScriptTop('http://maps.google.com/maps/api/js?sensor=false');
	$page->addJavaScript('uiMap/jquery.fn.gmap.js');
	$page->addJavaScript('uiMap/jquery.ui.map.services.js');
}
$index->stop();
$page->setBody($index);
$page->display();

?>